/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

/**
 *
 * @author Administrator
 */
public class E_Response {

    private int complaintID;
    private int staffID;
    private String resTitle;
    private String resContent;
    private String resDate;
    private byte resStatus;

    public E_Response(){
        this.complaintID=0;
        this.staffID=0;
        this.resTitle="";
        this.resContent="";
        this.resDate="";
        this.resStatus=0;
    }

     public E_Response(int complaintID,int staffID,String resTitle,String resContent,
                    String resDate,byte status){
        this.complaintID=complaintID;
        this.staffID=staffID;
        this.resTitle=resTitle;
        this.resContent=resContent;
        this.resDate=resDate;
        this.resStatus=status;
    }

    public void setComplaintID(int complaintID){
        this.complaintID=complaintID;
    }
    public int getComplaintID(){
        return this.complaintID;
    }

    public void setStaffID(int staffID){
        this.staffID=staffID;
    }
    public int getStaffID(){
        return this.staffID;
    }

    public void setResponseTitle(String resTitle){
        this.resTitle=resTitle;
    }
    public String getResponseTitle(){
        return this.resTitle;
    }

     public void setResponseContent(String resContent){
        this.resContent=resContent;
    }
    public String getResponseContent(){
        return this.resContent;
    }

    public void setResponseDate(String resDate){
        this.resDate=resDate;
    }
    public String getResponseDate(){
        return this.resDate;
    }

    public void setResponseStatus(byte resStatus){
        this.resStatus=resStatus;
    }
    public byte getResponseStatus(){
        return this.resStatus;
    }

    public String toString(){
        String resInfo="ComplaintID : "+complaintID;
               resInfo+="\nStaffID : "+staffID;
               resInfo+="\nTitle : "+resTitle;
               resInfo+="\nContent : "+resContent;
               resInfo+="\nDate : "+resDate;
               if(resStatus==0){
                    resInfo+="\nRating : good";
               }else{
                    resInfo+="\nRating : bad";
               }
        return resInfo;
    }

}
